<?php

/* @var $this yii\web\view */
/* @var $customers common\models\Customer[] */

$this->title = 'Customer';
$this->params['breadcrumbs'][] = $this->title;
?>
<h2 class="page-header"><?= $this->title ?></h2>

<p>
    <a href="<?= \yii\helpers\Url::to(['create']) ?>" class="btn btn-primary">Create Customer</a>
</p>

<table class="table">
    <thead>
    <tr>
        <th>Name</th>
        <th>Zip Code</th>
        <th>City</th>
        <th>Province</th>
    </tr>
    </thead>
    <tbody>
    <?php foreach($customers as $item): ?>
    <tr>
        <td><?= $item->name ?></td>
        <td><?= $item->zip_code ?></td>
        <td><?= $item->city ?></td>
        <td><?= $item->province ?></td>
    </tr>
    <?php endforeach ?>
    </tbody>
</table>